import axios from "../../utils/request"

function getCartList(query){
    return axios.get('/cart/list',{params:query})
}
function addToCart(body){
    return axios.post('/cart/add',body)
}
function setCartCount(body){
    return axios.put('/cart/setcount',body)
}
function delCart(id){
    return axios.delete('/cart/delete'+id)
}

export default {
    getCartList,
    addToCart,
    setCartCount,
    delCart
}